{temp('html/recruit/pc/head')}
	<script type="text/javascript">
      window.document.onkeydown=function(){
			if(window.event.keyCode==27){
			 	art.dialog.close();
			}
		}
      
      function lb(){
    	  var lb = $("#lb").val();
    	  if(lb == 1){  //视频
    		  document.getElementById('file').style.display = 'block';
    		  document.getElementById('sp').style.display = 'block';
    		  document.getElementById('wenz').style.display = 'none';
    	  }else{
    		  document.getElementById('file').style.display = 'none'; 
    		  document.getElementById('sp').style.display = 'none';
    		  document.getElementById('wenz').style.display = 'block';
    	  }
      }
      
      function fabu(){
    	  var lb = $("#lb").val();
    	  var name = $("#name").val();
		  var content = UE.getEditor('editor').getContent();
    	  var shipin = $("#luji").val();
    	  $.post('{$_url}/?act=job&met=kcfb_sck',{name:name,content:content,lb:lb,shipin:shipin},function(data){
    			if(data == 'cg'){
    				top.location.href='{$_url}/?act=job&met=kcgl';
    				//art.dialog.close();
    			}else{
    				alert(data);
    			}
    	  }); 
      }
      function sctp(id){//上传视频
			art.dialog.open('{$_url}/?act=job&met=upfile&id='+id+'{$gnpd}',{title:'',width:'428px',lock:true},false);
	  }
	</script>
</head>
<body style="background-color:#FFF">
	<div class="w_800 bc_FFF bor_137ABF" style="height:auto;">
		<div class="w_bai h_40 bc_137ABF l_h40">
			<div class="f_l l_m20 c_FFF">发布课程</div>
			<div class="f_r r_m20 t_m12 close2 point" onclick="closeWindow()"></div>
		</div>
		<div class="w_bai dis_inline t_m40 c_656565">
			<div class="f_l t_m8 l_m40 c_656565">课程标题</div>
			<div class="f_l l_m10">
				<input type="text" class="inp_msg w_340" id="name"/>
			</div>
		</div>
		<div class="w_bai t_m20 dis_inline">
			<div class="f_l t_m8 l_m40 c_656565">课程类别</div>
			<div class="f_l" style="margin-left:10px!important;margin-left:20px">
				<div class="select-outer select-wh110">
					<div class="select-inner">
						<select class="select-h" onchange="lb()" id="lb">
							<option value="1">视频</option>
							<option value="2">文章</option>
						</select>
					</div>
				</div>
			 </div>	
		</div>
		<div class="w_bai t_m20 dis_inline">
			<div class="f_l t_m8 l_m40 c_656565">扣除积分</div>
			<div class="f_l l_m10">
				<input type="text" class="inp_msg" id="sp_kcjf" value="0"/>
			</div>
		</div>
		<div class="w_bai t_m20 dis_inline" style="display:block" id="file">
			<div class="f_l t_m8 l_m40 c_656565">视频文件</div>
			<div class="f_l l_m10">
				<input type="text" class="inp_msg" id="luji" value="" readonly="readonly"/>
			</div>
			<div class="f_l l_m10 w_80 h_35 bc_E7E7E7 c_656565 t_c l_h35 point" onClick="sctp('luji')">
				上传视频
			</div>
		</div>
		
		<div class="w_bai t_m20 dis_inline">
			<div class="f_l t_m8 l_m40 c_656565" style="display:block" id="sp">视频描述</div>
			<div class="f_l t_m8 l_m40 c_656565" style="display:none" id="wenz">文章内容</div>
			<div class="f_l l_m10">
				<!-- <textarea rows="3" cols="20" class="h_180" id="content"></textarea> -->
				<script id="editor" type="text/plain" style="width:600px;height:300px;"></script>
			</div>
		</div>
		
		<div class="l_m85 t_m30 b_m20 dis_inline">
			<div class="f_l w_65 h_35 l_m55 l_h35 t_c c_FFF bc_E16400 point" onclick="fabu()">
				保存
			</div>
			<div class="f_l w_65 h_35 l_m16 l_h35 t_c c_FFF bc_E16400 point" onclick="closeWindow()">
				取消
			</div>
		</div>
	</div>
	<script type="text/javascript">
		function closeWindow(){
			parent.closeWindow();
		}
		
		$(function(){
			var ue = UE.getEditor('editor');
		});
	</script>
</body>
</html>